<template>
  <div class="container">
    <el-dialog title="预览文章" :visible="dialogSimple" @close="cls" width="45%">
      <h2>{{ item.title }}</h2>
      <div>
        <span v-html="item.articleBody"></span>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    dialogSimple: {
      type: Boolean,
      default: false
    },
    item: {
      type: Object
    }
  },

  data () {
    return {}
  },
  methods: {
    cls () {
      this.$emit('update:dialogSimple', false)
    }
  }
}
</script>

<style scoped>
img {
  width: 650px;
}
</style>
